#ifndef TDATASTORE_H
#define	TDATASTORE_H

#include <cppunit/extensions/HelperMacros.h>
#include "../DataStore.h"
#define CT CPPUNIT_TEST
#define CA CPPUNIT_ASSERT

class tDataStore : public CPPUNIT_NS::TestFixture {
    CPPUNIT_TEST_SUITE(tDataStore);

    CT(writing);
    CT(readaccounts);
    CT(readbookings);
    CT(readholidays);
    CT(find);
    CT(listclientbookings);
    CT(listholidaybookings);
    CT(hascolon);
    CT(encoding);

    CPPUNIT_TEST_SUITE_END();

public:
    tDataStore();
    virtual ~tDataStore();
    void setUp();
    void tearDown();

private:
    void writing();
    void readaccounts();
    void readbookings();
    void readholidays();
    void find();
    void listclientbookings();
    void listholidaybookings();
    void hascolon();
    void encoding();

    DataStore ds;
};

#endif	/* TDATASTORE_H */

